/*
	Script to collect an array of all friendly owned points
	args: side	The side this script is ran by
*/

_side = _this select 0;
_color = nil;
_points = [];

if (_side == side0) then {
	_color = side0_MarkerColor;
} else {
	_color = side1_MarkerColor;
};


{
	if (markerColor (_x select 2) == _color) then {
		/* This one belongs to us */
		_points = _points + [_x select 0];
	};

} forEach aiStrategicPoints;

/* Return the list of strategic points */
_points